﻿using System;
using System.Diagnostics.CodeAnalysis;

namespace ZenWplExporter
{
	/// <summary>
	/// Logs messages
	/// </summary>
	internal static class Logger
	{
		/// <summary>
		/// Writes the info.
		/// </summary>
		/// <param name="message">The message.</param>
		public static void WriteInfo(string message)
		{
			Console.WriteLine(message);
		}

		/// <summary>
		/// Writes the info.
		/// </summary>
		/// <param name="message">The message.</param>
		/// <param name="values">The values.</param>
		public static void WriteInfo(string message, params object[] values)
		{
			Console.WriteLine(message, values);
		}

		/// <summary>
		/// Writes the error.
		/// </summary>
		/// <param name="message">The message.</param>
		[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
		public static void WriteError(string message)
		{
			Console.WriteLine(message);
		}

		/// <summary>
		/// Writes the error.
		/// </summary>
		/// <param name="message">The message.</param>
		/// <param name="values">The values.</param>
		[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
		public static void WriteError(string message, params object[] values)
		{
			Console.WriteLine(message, values);
		}

		/// <summary>
		/// Writes the error.
		/// </summary>
		/// <param name="ex">The ex.</param>
		public static void WriteError(Exception ex)
		{
			Console.WriteLine(ex);
		}
	}
}